import request from "../index";

export default class AnswerRequest {
  // 获取回答信息
  public static getAnswers(params) {
    return request({
      url: "/answer",
      params,
      method: "get",
    });
  }

  // 创建回答
  public static addAnswers(data) {
    return request({
      url: "/answer",
      data,
      method: "post",
    });
  }
}
